package descentFly.app.radar
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import flash.geom.Rectangle;
	
	public class df_grid extends uif_ecomponent {
		public function df_grid(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:Object='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		override protected function paint(a_styleClass:String, a_method:String='draw_rect'):void {
			begin2(style);
			var inner: Rectangle = getInner();
			
			var step: Number = width / 8;
			var i: Number = step;
			while (i < inner.height) {
				graphics.moveTo(inner.x + i, inner.y);
				graphics.lineTo(inner.x + i, inner.y + inner.height);
				i += step;
			}

			step = height / 8;
			i = step;
			while (i < inner.height) {
				graphics.moveTo(inner.x, inner.y + i);
				graphics.lineTo(inner.x + inner.width, inner.y + i);
				i += step;
			}
		}
	}
}